This script creates a small remote control that lets you pick
a frame, reload it or move back and forward through its history.
Discussion
Unlike the window remote control, this remote lets the reader
select which window to manipulate. The selection list is
created automatically by recursive descent of the frames tree.
The window to manipulate is built up from the remote's
opener pointer and the
selected text. (Due to differences in the internal window model,
MSIE 4.0 users will find that the frame-descent scripting
causes an error dialog--to which you can just reply with the "yes" button. The remote control will still manipulate
the current window, but MSIE 4.0 will not allow an enumeration
of the frames.)
// Create the options for the frame selection
function recurseFrames(aFrame, path)
{
var which = aFrame.name
if (which != "")
document.writeln("